//! Copyright 2012 NTH Technology, Inc.
//! All rights reserved
//!
#ifndef __RF_h__
#define __RF_h__

#include "BasicTypes.h"

extern "C" {
    extern void TIM3_IRQHandler(void);
}

class cRF
{
private:
    static const U8  NUMBER_RF_BIT = 12;          //12 bit 3 trang thai
    static const U16 TIMEOUT_RF    = 300;         // 300ms
    static bool s_RFSysnBitTimeout;
    static U8 s_BitCnt;
    static U8 s_pRFBuff[];
    static cSysTick s_RFTick;

public:
    static void InitReset();
    static bool CheckReceive();

    static void RunOne();
};

#endif // __RF_h__
